﻿using Hopscotch.Presentation.TradeModule.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Hopscotch.Presentation.TradeModule.Views
{
	/// <summary>
	/// Interaction logic for TradeBlotterView.xaml
	/// </summary>
	public partial class TradeBlotterView : UserControl
	{
		//ZXZX: Temp view until enquiry view is complete
		public TradeBlotterView()
		{
			InitializeComponent();
		}

		public TradeBlotterView(TradeBlotterViewModel tradeBlotterViewModel)
			:this()
		{
			this.DataContext = tradeBlotterViewModel;
		}

		//private void tradeListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
		//{
		//	//var listview = (ListView)sender;
		//	//foreach (var item in listview.Items)
		//	//{
		//	//	var om = item as OrderModel;
		//	//	if (om != null)
		//	//		om.IsSelected = false;
		//	//}
		//	//foreach (var item in listview.SelectedItems)
		//	//{
		//	//	var om = item as OrderModel;
		//	//	if (om != null)
		//	//		om.IsSelected = true;
		//	//}
		//}
	}
}
